//
//  OSUserManager.h
//  MiAiApp
//
//  Created by 徐阳 on 2017/5/22.
//  Copyright © 2017年 徐阳. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OSUserInfo.h"

#define kUserInfo [OSUserManager sharedOSUserManager].userInfo
#define kToken [[OSUserManager sharedOSUserManager] getToken]
#define kIsTourst  (kToken.length == 0)
/*
 包含用户相关服务
 */
@interface OSUserManager : NSObject

//单例
+ (instancetype)sharedOSUserManager;

//当前用户信息
@property (nonatomic, strong)OSUserInfo *userInfo;
-(NSString *)getToken;
-(void)clearUserData;
-(void)updateUserInfo:(NSDictionary *)userInfo;
-(void)confingUserInfo;
@end
